package com.wtwd.campus.service.impl;

import com.wtwd.campus.dao.WxCustomerMapper;
import com.wtwd.campus.entity.WxCustomer;
import com.wtwd.campus.service.WxCustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author mjy
 * @date 2022/05/12
 * @description
 */
@Service
public class WxCustomerServiceImpl implements WxCustomerService {

    @Autowired
    private WxCustomerMapper wxCustomerMapper;

    @Override
    public WxCustomer getWxCustomerByAppKey(String appKey) {
        return wxCustomerMapper.getWxCustomerByAppKey(appKey);
    }

    @Override
    public WxCustomer getWxCustomerById(Integer customerId) {
        return wxCustomerMapper.getWxCustomerById(customerId);
    }

    @Override
    public WxCustomer getWxCustomerByCustomerCode(String wxCustomerCode) {
        return wxCustomerMapper.getWxCustomerByCustomerCode(wxCustomerCode);
    }
}
